﻿/*
            Author : Nguyen Van Ty
            Email  : ngvanty_03@yahoo.com
            Date   : 9/30/2009 
            
            */

using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessObject
{
    /// <summary>
    /// Define MenuResult object.
    /// </summary>
    public class MenuResult
    {
        #region fields
        private int id;
        private string name;
        private string link;
        private int parentID;
        private string isActive;
        private string forSupperAdmin;
        private bool hasChild;
        #endregion fields

        #region properties
        /// <summary>
        /// Define Id Property.
        /// </summary>
        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        /// <summary>
        /// Define Name Property.
        /// </summary>
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        /// <summary>
        /// Define Link Property.
        /// </summary>
        public string Link
        {
            get { return this.link; }
            set { this.link = value; }
        }
       /// <summary>
        /// Define ParentID Property.
        /// </summary>
        public int ParentID
        {
            get { return this.parentID; }
            set { this.parentID = value; }
        }
        /// <summary>
        /// Define IsActive Property.
        /// </summary>
        public string IsActive
        {
            get { return this.isActive; }
            set { this.isActive = value; }
        }
        /// <summary>
        /// Define forSupperAdmin Property.
        /// </summary>
        public string ForSupperAdmin
        {
            get { return this.forSupperAdmin; }
            set { this.forSupperAdmin = value; }
        }
        /// <summary>
        /// Define HasChild Property.
        /// </summary>
        public bool HasChild
        {
            get { return this.hasChild; }
            set { this.hasChild = value; }
        }
        #endregion properties

        #region constructor
        /// <summary>
        /// Define default constructor for MenuResult Object.
        /// </summary>
        public MenuResult()
        {
            this.id = int.MinValue;
            this.name = string.Empty;
            this.parentID = int.MinValue;
            this.link = string.Empty;
            this.hasChild = false;
        }
        /// <summary>
        /// Define constructor for LanguageResultResult Object.
        /// </summary>
        public MenuResult(int id,string name,string link,int parent,bool hasChild,string supperAdmin)
        {
            this.id = id;
            this.name = name;
            this.link = link;
            this.parentID = parent;
            this.hasChild = hasChild;
            this.forSupperAdmin = supperAdmin;
        }
        #endregion constructor
    }
}